package com.zhangyu.shadow.repair.delegate.search;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zhangyu.shadow.repair.R;
import com.zhangyu.shadow.repair.delegate.search.entity.Trouble;

import java.util.List;

/**
 * @author zhangyu
 * @date 2018/3/30
 */

public class AddTroubleAdapter extends BaseQuickAdapter<Trouble, BaseViewHolder> {

    public AddTroubleAdapter(int layoutResId, @Nullable List<Trouble> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Trouble item) {
        helper.setText(R.id.text, item.getName());
    }
}
